package com.zhuhanpeng.cloud.mybatis.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class PtMenuEntity implements Serializable {
    private  String menuId;
    private  String menuName;
    private  String parentId;
    private  Integer menuType;
    private  Integer menuLevel;
    private  String menuUrl;
    private  String privilegeCode;
    private  String menuIcon;
    private  String menuSeq;
    private  String createTime;
    private List<PtMenuEntity> children =new ArrayList<>();

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public Integer getMenuType() {
        return menuType;
    }

    public void setMenuType(Integer menuType) {
        this.menuType = menuType;
    }

    public Integer getMenuLevel() {
        return menuLevel;
    }

    public void setMenuLevel(Integer menuLevel) {
        this.menuLevel = menuLevel;
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }

    public String getPrivilegeCode() {
        return privilegeCode;
    }

    public void setPrivilegeCode(String privilegeCode) {
        this.privilegeCode = privilegeCode;
    }

    public String getMenuIcon() {
        return menuIcon;
    }

    public void setMenuIcon(String menuIcon) {
        this.menuIcon = menuIcon;
    }

    public String getMenuSeq() {
        return menuSeq;
    }

    public void setMenuSeq(String menuSeq) {
        this.menuSeq = menuSeq;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public List<PtMenuEntity> getChildren() {
        return children;
    }

    public void setChildren(List<PtMenuEntity> children) {
        this.children = children;
    }
    public void addChildren(PtMenuEntity ptMenuEntity) {
        this.children.add(ptMenuEntity);
    }
}
